home *** CD-ROM | disk | FTP | other *** search
- package Local.Game.Thing
- {
- import Local.Game.World.CPosition;
-
- public class CPeepAK47 extends CPeep
- {
-
-
- public function CPeepAK47(param1:CPosition)
- {
- super(param1);
- mType = "peepak47";
- §§push(§§findproperty(mMaxSpeed));
- §§push(4.5);
- if(true)
- {
- §§push((§§pop() + Math.random()) * mSpriteScalar);
- }
- §§pop().mMaxSpeed = §§pop();
- mSpeed = 0;
- Process = Process_Normal;
- mOrientation = -1;
- SetTargetting(400 - Math.random() * 100,false,FILTER_GroundTargets,true,50);
- CSpriteFrame.mFlipX = true;
- AddAnimation("run",AK47_Run,"AddSprite_Black",false);
- AddAnimation("standaim",AK47_Stand_Aim,"AddSprite_Black",true);
- AddAnimation("crouchaim",AK47_Crouch_Aim,"AddSprite_Black",true);
- CSpriteFrame.mFlipX = false;
- mAnimationFrame = Math.random();
- AddThing(mPrimaryWeapon = new CWeaponAK47());
- SetState("GOTO");
- IncrementBuild();
- }
-
- override public function get mPrize() : int
- {
- return CPeepM16.mCost * 2;
- }
-
- override public function get mBaseDamage() : Number
- {
- return 50;
- }
- }
- }
-